#!/usr/bin/env bash

#在./test-02下，添加./test-02/333.txt，commit，push
#git clone test-01-origin到./test-01-new-git-clone
#./test-01-new-git-clone/test-02/333.txt必须存在！

cd ${PATH_NAME_02}
cp -f ${PATH_GIT_TEST}/333.txt 333.txt
git add 333.txt
git commit -m "add 333.txt"
git push

cd ${PATH_NAME_01}
git subtree pull --prefix=${DIR_NAME_02} --squash ${PATH_NAME_02_ORIGIN} master
git push

cd ${PATH_ROOT_TEST}
git clone ${PATH_NAME_01_ORIGIN} ${PATH_NAME_01_NEW_GIT_CLONE}
cd ${PATH_NAME_01_NEW_GIT_CLONE}
